import Vue from 'vue'
import App from './App.vue'
import router from './router'

//全局组件
import Item from './components/item.vue'
Vue.component("Item",Item)

//axios
import axios from 'axios'
Vue.prototype.$http = axios;

//引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

// 设置前端跨域访问cookie
axios.defaults.withCredentials = true;
axios.defaults.crossDomain = true

//获取cookie
var VueCookie = require('vue-cookie');
Vue.use(VueCookie);




Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
